{include file="header.tpl" show_nav_info="no" title="管理作品"}
<div id="container">
{include file="Works-sidebar.tpl}
	<div id="content">
		<div class="page_block">
			<div class="page_block_title">
				<h2>所有作品</h2>
			</div>
			<div class="page_block_body">
				<form enctype="multipart/form-data" action="?Works-doAddWorks" method="post">
				<table class="info_tab">
					<tr><th>作品名称</th><td><input class="text" type="text" name="work_name"/></td></tr>
					<tr><th>选择图片</th><td><input type="file" class="text" name="work_file"/></td></tr>
					<tr><th>作品描述</th><td><textarea name="work_description"></textarea></td></tr>
					<tr><th>所属作品集</th><td>
						<select name="works_set_id">
							{section name=item loop=$worksets}
							<option value="{$worksets[item].works_set_id}">{$worksets[item].works_set_name}</option>
							{/section}
						</select>
						</td></tr>
					<tr><th>隐私策略</th><td>
						<select name="privacy">
							<option value="0">所有人可见</option>
							<option value="1">仅好友可见</option>
						</select>
						</td></tr>
					<tr><td colspan="2" class="center">
						<input class="button" type="submit" name="addWorksetSubmit"value="提交" />
						<input class="button" type="reset" value="重填" />
					</td></tr>
				</table>
				</form>
			</div>
		</div>
	</div>
</div>
{include file="footer.tpl"}
